package com.tboss.template.system.type;

import java.util.HashMap;
import java.util.Map;

public enum TreeviewSysMenuType {

	HD("htmlDb", ".system.service.TreeviewSysMenuHtmlDaoService"),
	JD("jsonDb", ".system.service.TreeviewSysMenuJsonDaoService"),
	HF("htmlFile", ".system.service.TreeviewSysMenuHtmlFileService"),
	JF("jsonFile", ".system.service.TreeviewSysMenuJsonFileService"),
	HM("htmlManual", ".system.service.TreeviewSysMenuHtmlManualService"),
	JM("jsonManual", ".system.service.TreeviewSysMenuJsonManualService"),
	;
	
	private String key;
	private String value;
	private TreeviewSysMenuType(String key, String value){
		this.key = key;
		this.value = value;
	}
	private static final Map<String, TreeviewSysMenuType> lookup = new HashMap<String, TreeviewSysMenuType>();
	static{
		for(TreeviewSysMenuType o : TreeviewSysMenuType.values()){
			lookup.put(o.getKey(), o);
		}
	}
	
	public String getKey(){ return this.key; }
	public String getValue(){ return this.value; }
	public static TreeviewSysMenuType get(String key){
		return lookup.get(key);
	}
	
}
